/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Vue;

import java.awt.BorderLayout;
import java.awt.Component;
import javax.swing.JPanel;

/**
 *
 * @author Bakalian
 */
public class ContentPane {
    private JPanel myWholePanel;
    private Window myWindow;
    private float alignmentX;
    private float alignmentY;
/**
 * our Main panel is composed by a menu panel and the main presentation panel
 * gather the two panel
 * @param menu reeive de menu panel
 * @param main  receive the prsentation panel
 */
    public ContentPane(JPanel menu,JPanel main) {
        
        myWholePanel=new JPanel();// creating the global panel
        myWholePanel.setSize(800, 600); // seting the size
        myWholePanel.setLayout(new BorderLayout());//setting the Layout
        myWholePanel.add(menu, BorderLayout.NORTH);// add the Menu Panel
        myWholePanel.add(main, BorderLayout.CENTER);// add the presentation panel
        myWholePanel.setVisible(true);
        myWholePanel.setAlignmentX(alignmentX);
        myWholePanel.setAlignmentX(alignmentY);
        myWindow=new Window(myWholePanel);
        // on est entr train de créer le principal panneau qu'on mettre dans la fenetre reste à mettre le getter
    }

    public JPanel getMyWholePanel() {
        return myWholePanel;
    }
    
    
}
